﻿//======================================================================
//
//        Copyright (C) 2008 HOHO``
//        All rights reserved
//
//        filename :$safeitemrootname$
//        description :管理员操作，帐户管理。
//
//        created by 裘中杰 at  $time$
//======================================================================

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Hisun.Models;
using Hisun.Controllers;

namespace Hisun.View.Admin
{
    public partial class Account : AbcPageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
                AbcAccount aa = new AbcAccount();
                if (string.IsNullOrEmpty(txtUsername.Text))
                    ListView1.DataSource = aa.GetUsers();
                else
                    ListView1.DataSource = aa.GetUsers(txtUsername.Text);
                ListView1.DataBind();
        }
    }
}
